package com.zfast.forge.pojo.dto;

import com.zfast.config.valid.Create;
import javax.validation.constraints.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;


/**
 * 羽毛球场
 *
 * @author zgn
 * @email
 * @date 2024-02-06 13:48:47
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "bad_field")
@ApiModel(value = "Field", description = "羽毛球场")
public class Field implements Serializable{
    private static final long serialVersionUID=1L;

    @Id
    @Column(name = "id")
    @ApiModelProperty("主键")
    @NotNull(message = "主键不可为空", groups = {Create.class})
    private String id;

    @Column(name = "name")
    @ApiModelProperty("球场名称")
    private String name;

    @Column(name = "x1")
    @ApiModelProperty("")
    private Double x1;

    @Column(name = "x2")
    @ApiModelProperty("")
    private Double x2;

    @Column(name = "y1")
    @ApiModelProperty("")
    private Double y1;

    @Column(name = "y2")
    @ApiModelProperty("")
    private Double y2;

    @Column(name = "y3")
    @ApiModelProperty("")
    private Double y3;

    @Column(name = "z")
    @ApiModelProperty("网高")
    private Double z;

    @Column(name = "l")
    @ApiModelProperty("线粗")
    private Double l;

    @Column(name = "del_flag")
    @ApiModelProperty("删除标志0-正常,1-已删除")
    private Boolean delFlag;

    @Transient
    @ApiModelProperty("模糊查询字段")
    private String whe;
}
